package com.jxltech.krpano.api;

import cn.hutool.core.lang.Pair;
import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;


/**
 * Created by feng on 2020/8/29 0029
 */
public interface ApiService {
	/**
	 * 上传
	 * @param id
	 * @param type
	 * @param file
	 * @throws Exception
	 */
	void saveUploadFile(String id, String type, MultipartFile file) throws Exception;

	/**
	 * 删除上传文件
	 * @param name
	 * @param type
	 * @param fileName
	 */
	void deleteFile(String name, String type,String fileName);


	List<Pair<String, String>> getPartitions(String areaId);

	String[] list(String name, String type);

	void saveForm(JSONObject jsonObject);

	void submit(JSONObject jsonObject);

	void reset(String name);

	JSONObject getFormInfo(String name);

	List<Pair<String, String>> getTemplates();
}
